<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<h:form id="frmPrincipal">
		<p:menubar id="MenuPrincipal">
			<p:submenu label="Cadastrar" rendered="#{MBlogin.validacao}">
				<p:menuitem value="Cliente" outcome="/pages/jmeCliente.xhtml"/>
				<p:menuitem value="Fornecedor" outcome="/pages/jmeFornecedor.xhtml"/>
				<p:menuitem value="Produto" outcome="/pages/jmeProduto.xhtml" />
				<p:menuitem value="Pedido" />
			</p:submenu>
			
			<p:submenu label="Relatórios" rendered="#{MBlogin.validacao}">
				<p:menuitem value="Cliente" outcome="/pages/jmeRelatorioCliente">
				</p:menuitem>
				<p:menuitem value="Produto" outcome="/pages/jmeRelatorioProduto.xhtml">
				</p:menuitem>
			</p:submenu>
			
			<p:submenu label="Vendas"  rendered="#{MBlogin.validacao}" >
				<p:menuitem value="Novo" outcome="/pages/jmeRegistroVenda"/>
			</p:submenu>
			
			<p:submenu label="Opçôes">
				<p:menuitem value="Sobre" />
				<p:menuitem value="Sair" action="/pages/jmeLogin.xhtml" actionListener="#{MBlogin.alteraValidacao()}" 
							update=":frmPrincipal:MenuPrincipal " >
							
							
				</p:menuitem>
			</p:submenu>
			
			
		</p:menubar>

	</h:form>

</ui:composition>